package com.qfedu.stussm.service.intf;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.qfedu.stussm.entity.Classes;
import com.qfedu.stussm.vo.PageBeanVo;
import com.qfedu.stussm.vo.R;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface ClassService {
    R addClass (Classes classes);
    PageBeanVo selectAll (String name, int page, int limit);
    R delClass (int id);
    R updateClass (Classes classes);
    /**
     * 实现Excel数据导入 1.上传 2.解析 3.新增*/
    R uploadExcel(MultipartFile file) throws IOException;
    void createExcel(HttpServletResponse response) throws IOException;
    //统计
    R sel ();
}
